package com.mm.serivce.quartz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mm.domain.common.DCornQuartz;

import java.util.List;
import java.util.Map;

/**
 * 描述: 定时器信息
 *
 * @author: yanglin
 * @Date: 2021-07-29-8:10
 * @Version: 1.0
 */
public interface CornQuartzService extends IService<DCornQuartz> {

    /**
     * 根据ID查询
     *
     * @param taskId
     * @return
     */
    DCornQuartz queryQuartzById(Long taskId);

    /**
     * 更新
     *
     * @param quartz
     * @return
     */
    int updateQuartzById(DCornQuartz quartz);

    /**
     * 查询当月任务记录
     *
     * @return
     */
    List<DCornQuartz> queryQuartzList(String day);

    /**
     * 多参数查询
     *
     * @param map
     * @return
     */
    List<DCornQuartz> queryQuartzList(Map<String, Object> map);

    /**
     * 逻辑删除
     *
     * @param nId
     * @return
     */
    boolean remove(Long nId);


}
